<?php 
	include_once 'thuvienham.php';
	include_once 'nguoidung_db.php';

	class nguoidung_bs 
	{
		//------------------Fields [13]------------------
			// #0
		private $MaNguoiDung = "";
		public function SetMaNguoiDung($MaNguoiDung)         { $this->MaNguoiDung = $MaNguoiDung;         }
		public function GetMaNguoiDung()                     { return $this->MaNguoiDung;                 }
			// #1
		private $MaLoaiNguoiDung = "";
		public function SetMaLoaiNguoiDung($MaLoaiNguoiDung) { $this->MaLoaiNguoiDung = $MaLoaiNguoiDung; }
		public function GetMaLoaiNguoiDung()                 { return $this->MaLoaiNguoiDung;             }
			// #2
		private $MaChucVu = "";
		public function SetMaChucVu($MaChucVu)               { $this->MaChucVu = $MaChucVu;               }
		public function GetMaChucVu()                        { return $this->MaChucVu;                    }
			// #3
		private $HoTen = "";
		public function SetHoTen($HoTen)                     { $this->HoTen = $HoTen;                     }
		public function GetHoTen()                           { return $this->HoTen;                       }
			// #4
		private $NgaySinh = "0000-00-00";
		public function SetNgaySinh($NgaySinh)               { $this->NgaySinh = $NgaySinh;               }
		public function GetNgaySinh()                        { return $this->NgaySinh;                    }
			// #5
		private $DiaChi = "";
		public function SetDiaChi($DiaChi)                   { $this->DiaChi = $DiaChi;                   }
		public function GetDiaChi()                          { return $this->DiaChi;                      }
			// #6
		private $DienThoai = "";
		public function SetDienThoai($DienThoai)             { $this->DienThoai = $DienThoai;             }
		public function GetDienThoai()                       { return $this->DienThoai;                   }
			// #7
		private $Email = "";
		public function SetEmail($Email)                     { $this->Email = $Email;                     }
		public function GetEmail()                           { return $this->Email;                       }
			// #8
		private $MatKhau = "";
		public function SetMatKhau($MatKhau)                 { $this->MatKhau = $MatKhau;                 }
		public function GetMatKhau()                         { return $this->MatKhau;                     }
			// #9
		private $DangNhap2 = -1;
		public function SetDangNhap2($DangNhap2)             { $this->DangNhap2 = $DangNhap2;             }
		public function GetDangNhap2()                       { return $this->DangNhap2;                   }
			// #10
		private $MatKhau2 = "";
		public function SetMatKhau2($MatKhau2)               { $this->MatKhau2 = $MatKhau2;               }
		public function GetMatKhau2()                        { return $this->MatKhau2;                    }
			// #11
		private $Avatar = "";
		public function SetAvatar($Avatar)                   { $this->Avatar = $Avatar;                   }
		public function GetAvatar()                          { return $this->Avatar;                      }
			// #12
		private $PIN = "";
		public function SetPIN($PIN)                         { $this->PIN = $PIN;                         }
		public function GetPIN()                             { return $this->PIN;                         }

		//------------------Method------------------
		public function Them()
		{
			$data = new nguoidung_db();
			return $data->Them($this->MaNguoiDung, $this->MaLoaiNguoiDung, $this->MaChucVu, $this->HoTen, $this->NgaySinh, $this->DiaChi, $this->DienThoai, $this->Email, $this->MatKhau, $this->DangNhap2, $this->MatKhau2, $this->Avatar, $this->PIN);
		}

		public function Xoa()
		{
			$data = new nguoidung_db();
			return $data->Xoa($this->MaNguoiDung);
		}

		public function CapNhat()
		{
			$data = new nguoidung_db();
			return $data->CapNhat($this->MaNguoiDung, $this->MaLoaiNguoiDung, $this->MaChucVu, $this->HoTen, $this->NgaySinh, $this->DiaChi, $this->DienThoai, $this->Email, $this->MatKhau, $this->DangNhap2, $this->MatKhau2, $this->Avatar, $this->PIN);
		}
		
		public function CapNhatMatKhau()
		{
			$data = new nguoidung_db();
			return $data->CapNhatMatKhau($this->MaNguoiDung, $this->MatKhau);
		}
		
		public function CapNhatMatKhau2()
		{
			$data = new nguoidung_db();
			return $data->CapNhatMatKhau2($this->MaNguoiDung, $this->MatKhau2);
		}
		
		public function CapNhatDangNhap2Buoc()
		{
			$data = new nguoidung_db();
			return $data->CapNhatDangNhap2Buoc($this->MaNguoiDung, $this->DangNhap2);
		}
		public function CapNhatPIN()
		{
			$data = new nguoidung_db();
			return $data->CapNhatPIN($this->MaNguoiDung, $this->PIN);
		}
		
		public function LayDanhSach()
		{
			$data = new nguoidung_db();
			return $data->LayDanhSach($this->MaNguoiDung, $this->MaLoaiNguoiDung, $this->MaChucVu, $this->HoTen, $this->NgaySinh, $this->DiaChi, $this->DienThoai, $this->Email, $this->MatKhau, $this->DangNhap2, $this->MatKhau2, $this->Avatar, $this->PIN);
		}
		
		public function LayDanhSachPaging($Start, $Limit)
		{
			$data = new nguoidung_db();
			return $data->LayDanhSachPaging($this->MaNguoiDung, $this->MaLoaiNguoiDung, $this->MaChucVu, $this->HoTen, $this->NgaySinh, $this->DiaChi, $this->DienThoai, $this->Email, $this->MatKhau, $this->DangNhap2, $this->MatKhau2, $this->Avatar, $this->PIN, $Start, $Limit);
		}
		
	}

